import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router"
import HomeView from "../views/HomeView.vue"
import LoginView from "../views/LoginView.vue"
import OrderView from "../views/OrderView.vue"
import ShopView from "../views/ShopView.vue"
import ProfileView from "../views/ProfileView.vue"

const routes: Array<RouteRecordRaw> = [
  {
    path: "/login",
    name: "Login",
    component: LoginView
  },
  {
    path: "/",
    name: "Home",
    component: HomeView
  },
  {
    path: "/orders",
    name: "Orders",
    component: OrderView
  },
  {
    path: "/shops",
    name: "Shops",
    component: ShopView
  },
  {
    path: "/profile",
    name: "Profile",
    component: ProfileView
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
